/*
 * @(#)Json.java    May 31, 2010
 *
 * Copyright 2009 Nyber Shanghai, Inc. All rights reserved.
 */

package com.common.web;

import org.codehaus.jackson.annotate.JsonWriteNullProperties;

/**
 * Class description goes here.
 *
 * @author nickevin@gmail.com
 * @version May 31, 2010 11:19:27 AM
 */

@JsonWriteNullProperties(false)
public class Json {

    private Boolean success;
    private String message;
    private Object data;

    public Json() {}

    public Json(Boolean success) {
        this.success = success;
    }

    public Json(Object data) {
        this.data = data;
    }

    public Json(Boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
